import { createApp } from "vue";
import { createPinia } from "pinia";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import "./style.css";
import App from "./App.vue";
// import "./registerApps";
import start from "./registerApps";

const pinia = createPinia();
const app = createApp(App);
start({
  prefetch: true, // 开启预加载
  sandbox: {
    experimentalStyleIsolation: true, //   开启沙箱模式,实验性方案
    strictStyleIsolation: true,
  },
});

app.use(ElementPlus);
app.use(pinia);
app.use(router);
app.mount("#app");
